package com.itxuhang.handler;

import com.itxuhang.mvc.handler.Controller;
import com.itxuhang.mvc.model.ModelAndView;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

// 专门来处理/saveUser请求的处理类
public class SaveUserHandler implements Controller {

    @Override
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/plain;charset=utf-8");
        response.getWriter().write("SaveUserHandler...");
        return null;
    }

}
